import { FBXLoader } from "three/examples/jsm/loaders/FBXLoader"
import * as THREE from "three"

export const loadFbxModel = (url: string) => {
    const fbxLoader = new FBXLoader()
    return new Promise((res: (value: THREE.Group) => any) => {
        fbxLoader.load(url, (mesh) => {
            res(mesh)
        })
    })
}